package com.kai.steering.data.service.entity;

import com.kai.steering.data.service.entity.domainObject.AnswerDO;
import com.kai.steering.data.service.entity.vo.AnswerVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "AnswerResult对象", description = "答案结果对象")
public class AnswerResult {
    @ApiModelProperty(value = "题目ID")
    private String questionId;
    @ApiModelProperty(value = "答案ID")
    private String answerId;
    @ApiModelProperty(value = "分数")
    private double result;
    @ApiModelProperty(value = "结果详情")
    private AnswerDO answer;
    @ApiModelProperty(value = "结果详情")
    private String resultDetails;
    public AnswerResult(String questionId,String answerId ){
        this.questionId=questionId;
        this.answerId=answerId;
    }
    public AnswerResult(String questionId,String answerId,double result ){
        this.questionId=questionId;
        this.answerId=answerId;
        this.result=result;
    }
    public AnswerResult(double result){
        this.result=result;
    }
}
